/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package formulagraph.lineas;

import formulagraph.Colores;

/**
 *
 * @author soler4888
 */
public abstract class Linea {

    public Colores colorLinea;
    public double anchuraLinea;
    public ExtremosLinea extremoLinea;

    public Linea() {
        this.colorLinea = Colores.black;
        this.anchuraLinea = 1;
        this.extremoLinea = ExtremosLinea.butt;
    }

    public Linea(Colores colorLinea, double anchuraLinea, ExtremosLinea extremoLinea) {
        this.colorLinea = colorLinea;
        this.anchuraLinea = anchuraLinea;
        this.extremoLinea = extremoLinea;
    }

    public void setAnchuraLinea(double anchuraLinea) {
        this.anchuraLinea = anchuraLinea;
    }

    public void setColorLinea(Colores colorLinea) {
        this.colorLinea = colorLinea;
    }

    public void setExtremoLinea(ExtremosLinea extremoLinea) {
        this.extremoLinea = extremoLinea;
    }

    public abstract String dibujar();
}
